package com.chao.c.feign;

import com.chao.c.config.FeignServiceCConfig;
import com.chao.c.dto.Student;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Luck Chao
 * @Date: 2021/12/07
 */
@FeignClient(value = "web-dm-C", configuration = FeignServiceCConfig.class)
public interface ServiceCFeignClient {

    @RequestLine("GET /c/index")
    String index();

    @RequestLine("POST /c/1")
    String index1(@RequestBody String input);

    @RequestLine("POST /c/2")
    String index2(@RequestBody Student stu);



}
